#ifndef GAME_THREAD_H
#define GAME_THREAD_H

#include <assert.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "msg_queue.h"

//网络线程
//struct thread_net_param
//{
//	struct normal_queue *nq;
//	int                  eventfd;
//	int                  port;
//};

extern volatile sig_atomic_t g_thread_run;

extern int g_network_eventfd;

void create_thread(pthread_t *thread, void *(*start_routine)(void *), void *arg);

//void wakeup(struct monitor *m, int busy);
//void handle_hup(int signal);
#endif /* GAME_THREAD_H */
